-- GENERATED SPELL FOR [Amilya Airheart] --


function spell0_19558(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19558', 623, 1)
end

function Sorts_19558(pUnit, Event)
local choix_sorts_19558 = math.random(0, 0)
if choix_sorts_19558 == 0 then
pUnit:RegisterEvent('spell0_19558', 1, 1)
end
end

function mob19558_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19558', math.random(1500, 3000), 1)
end

function mob19558_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19558_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19558_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19558, 1, 'mob19558_Action')
RegisterUnitEvent(19558, 2, 'mob19558_Leave')
RegisterUnitEvent(19558, 3, 'mob19558_Kill')
RegisterUnitEvent(19558, 4, 'mob19558_Die')
